import request from '@/utils/request'
 
export const personalInfo = function(params){
  return request({
    url: '/customer/personal_information',
    method: 'get',
    params: params,
  })
}

export const warrantyActive = function(params){
  return request({
    url: '/customer/subscription_activation',
    method: 'get',
    params: params,
  })
}

// 我的权益接口
export const myBenefits = function(params){
  return request({
    url: '/customer/my_preserve',
    method: 'get',
    params: params,
  })
}

// 个人信息接口
export const personalInfoEdit = function(params){
  return request({
    url: '/customer/personal_edit',
    method: 'POST',
    data: params,
  })
}


// 个人信息接口
export const getUserInfo = function(params){
  return request({
    url: '/get_user_info',
    method: 'GET',
    params: params,
  })
}

// 退出登录接口
export const userLoginOut = function(params){
  return request({
    url: '/out_login',
    method: 'GET',
    params: params,
  })
}


// 获取推荐接口
export const getRecommend = function(params){
  return request({
    url: '/navigation_bar/get_all_key_words',
    method: 'GET',
    params: params,
  })
}

// 获取推荐数据
export const searchResult = function(params){
  return request({
    url: '/navigation_bar/select_all_key_words',
    method: 'GET',
    params: params,
  })
}
